package ink.tiptop.factory;

import ink.tiptop.pojo.BaseEntity;
import org.mapstruct.TargetType;

/**
 * @author zjf
 * @date 2020-08-15 16:00
 */
public class EntityFactory {
    public <T extends BaseEntity> T createEntity(@TargetType Class<T> entityClass) {
        // 这里用entityClass构建对象
        return (T) new BaseEntity();
    }
}
